package teehee.homepage;

import teehee.DB.DB;
import teehee.DB.DBHealth;
import teehee.DB.DBHistory;
import teehee.UI.*;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

/**
 * Initiate UI layout.
 * Depending on the button pressed, call the appropriate classes.
 * 
 * @author Eric and Shub
 *
 */
public class WODBookActivity extends Activity 
{
	/**
	 * Initiate layout for our homepage.
	 * 
	 * @throws
	 * @return
	 * @param savedInstanceState	initiate
	 */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        Context ctx = getApplicationContext();
        //Mock Database Instantiated
        DB.instantiateDB(ctx);
        DBHistory.instantiateHistoryDB(ctx);
        DBHealth.instantiateHealthHistoryDB(ctx);
        
      
        Intent mainp = new Intent(WODBookActivity.this, MainPage.class);
        startActivity(mainp);
    }
}